<!-- ControlComponents, begin -->
<?php
  $moduleName = sfContext::getInstance()->getRequest()->getParameter("module");
  $subModuleName = $moduleName."GoodsItem";
  $attachName = ucfirst(StaticWacFormStatus::$audited);

  echo "<div id=\"".WacModuleHelper::getComponentsId($moduleName, $attachName)."\">\n\n";

  // module buttons bar
  include_component('common', 'controlTable1',
              array( 'partial'      => WacModule::getName("common")."/".WacControlTableType::$moduleButtonBar,
                     'invokeParams' => array(
                                           'moduleName' => $moduleName,
                                           'caption'    => WacModule::getCaption($moduleName),
                                           'attachName' => $attachName
                                           )
                  ));

  // model list
  include_component('common', 'controlTable1',
              array( 'partial'      => $moduleName."/".WacControlTableType::$modelListingTableA,
                     'invokeParams' => array(
                                           'moduleName' => $moduleName,
                                           'subItemModuleName' => $subModuleName,
                                           'caption'    => WacModule::getCaption($moduleName),
                                           'attachName' => $attachName,
                                           'method'     => "getList/status/".StaticWacFormStatus::$audited
                                           )
                  ));


//  //mainItem form, hidden form interface
//  include_component($moduleName, WacControlTableType::$moduleForm,
//              array( 'partial'      => $moduleName."/".WacControlTableType::$moduleForm,
//                     'invokeParams' => array(
//                                           'moduleName' => $moduleName,
//                                           'caption'    => WacModule::getCaption($moduleName),
//                                           )
//                  ));
//
//  //sunItem form, hidden form interface
//  include_component($subModuleName, WacControlTableType::$moduleSubForm,
//              array( 'partial'      => $subModuleName."/".WacControlTableType::$moduleSubForm,
//                     'invokeParams' => array(
//                                           'moduleName' => $moduleName,
//                                           'subItemModuleName' => $subModuleName,
//                                           'caption'    => WacModule::getCaption($subModuleName),
//                                           )
//                  ));

  echo "</div>\n\n";
?>
<!-- ControlComponents, end -->